package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.Customers;

import java.util.List;

/**
 * 客户业务处理
 */
public interface ICustomersService {
    /**
     * 新增
     * @param customers
     * @return
     */
    Customers insert(Customers customers);

    /**
     * 更新
     * @param customers
     * @return
     */
    Customers update(Customers customers);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 通过ID查询
     * @param id
     * @return
     */
    Customers getByID(Integer id);
    IPage<Customers> getListByPage(IPage page, Customers customers);
    List<Customers> getList(Customers customers);
}
